<table class="table text-center">
    <thead>
    <tr>
        <th>{{ ts('ztbw') }}</th>
        <th>{{ ts('ROLLNUMBER') }}</th>
        <th>{{ ts('YLCD2') }}</th>
        <th>{{ ts('MXH') }}</th>
        <th>{{ ts('PRECUTORMANUAL') }}</th>
        <th>质保时间</th>
    </tr>
    </thead>
    <tbody>
    @foreach(@$coverages ?: [] as $v)
        <tr>
            <td>{{ ts('part_master.'.$v->part_id) }}</td>
            <td>{{ $v->roll_number }}</td>
            <td>{{ $v->length }} cm</td>
            <td>{{ ts('film_type_master.'.$v->film_type_id) }}</td>
            <td>{{ $v->precut_or_manual == 1 ? ts('precut') : ts('Manual') }}</td>
            @if(empty($v->start_time))
                <td></td>
            @elseif (($v->end_time-$v->start_time) >= 20* 365 * 24 * 60 * 60)
                <td>终身质保</td>
            @else
                <td>{{date("Y-m-d H:i:s",$v->start_time)}} - {{date("Y-m-d H:i:s",$v->end_time)}}</td>
            @endif
        </tr>
    @endforeach
    </tbody>
</table>